package cate.game.role.bag.prop.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.prop.continuepack.ContinuePacks;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "连开礼包数据 返回")
public class ContinuePackDataResp implements MsgOutput {
    @NoteField("连开礼包数据")
    public ContinuePacks data;

    public ContinuePackDataResp(){

    }

    public ContinuePackDataResp(ContinuePacks data){
        this.data = data;
    }

    public ContinuePackDataResp(Role role){
        this.data = role.getBag().prop.continuePacks;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.CONTINUE_PACK_DATA_RESP;
    }
}
